package com.yc.cloud.portal.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yc.cloud.basic.dto.BaseQueryParam;
import com.yc.cloud.entity.OssFile;
import com.yc.cloud.oss.dto.request.OssUploadParam;
import com.yc.cloud.oss.vo.OssFileVo;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 文件 服务类
 * </p>
 *
 * @author Yancy
 * @since 2023-12-25
 */
public interface OssFileService extends IService<OssFile> {

    /***
     * description:查询列表
     * @param param 查询条件
     * @return 数据信息
     */
    IPage<OssFile> list(BaseQueryParam param);

    OssFileVo upload(MultipartFile file, OssUploadParam param);

    OssFileVo getByFileId(String fileid);

    boolean deleteByFileId(String fileid);
}

